package com.eedi.framework.tenant.dal.dataobject;

import com.baomidou.mybatisplus.annotation.*;
import com.eedi.framework.common.enums.CommonStatusEnum;
import com.eedi.framework.mybatis.core.dataobject.BaseDO;
import com.eedi.framework.mybatis.core.type.JsonLongSetTypeHandler;
import lombok.*;

import java.util.Set;

/**
 * 租户套餐 DO
 *
 * @author 永聚长青源码
 */
//@TableName(value = "sys_tenant_package", autoResultMap = true)
//@KeySequence("sys_tenant_package_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
//@Data
//@EqualsAndHashCode(callSuper = true)
//@ToString(callSuper = true)
//@Builder
//@AllArgsConstructor
//@NoArgsConstructor
public class TenantPackageDO extends BaseDO {

    /**
     * 套餐编号，自增
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String sysTenantPackageId;
    /**
     * 套餐名，唯一
     */
    private String name;
    /**
     * 租户套餐状态
     *
     * 枚举 {@link CommonStatusEnum}
     */
    private CommonStatusEnum status;
    /**
     * 备注
     */
    private String remark;
    /**
     * 关联的菜单编号
     */
    @TableField(typeHandler = JsonLongSetTypeHandler.class)
    private Set<String> menuIds;

}
